<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>

<xsl:template match="/object">
  <html>
	<head>
	<title>
	<xsl:value-of select="metadata/title"/>
	</title>
	<link rel="stylesheet" href="http://planet.math.uwaterloo.ca/stylesheets/new.css"/>
	<link rel="stylesheet" href="http://planet.math.uwaterloo.ca/stylesheets/multilink.css"/>
	<script src="http://planet.math.uwaterloo.ca/javascripts/jquery.js" type="text/javascript"></script>
<script src="http://planet.math.uwaterloo.ca/javascripts/pm.js" type="text/javascript"></script>

	</head>
  <body>
	<div id="contentpane">
	<table>
	<tr>
		<td>
		<div id="title"><xsl:value-of select="metadata/title"/></div>
		</td>
		<td width="100%" align="right">
		<a>
		<xsl:attribute name="href">
		http://planet.math.uwaterloo.ca/?op=newview&amp;from=objects&amp;id=<xsl:value-of select="metadata/id"/>&amp;method=js</xsl:attribute>
		jsMath
		</a>
		<a>
		<xsl:attribute name="href">
		http://planet.math.uwaterloo.ca/?op=newview&amp;from=objects&amp;id=<xsl:value-of select="metadata/id"/>&amp;method=l2h</xsl:attribute>
		latex2html
		</a>
		</td>
	</tr>
	<tr>
	<td colspan="2">
		<div id="content">
		<xsl:value-of select="content/node()" disable-output-escaping="yes"/>
		</div>
	</td>
	</tr>
	<tr>
	<td>Authored by:
		<div id="authors">
			<table>
		      <xsl:for-each select="metadata/authors/author">
			<tr><td>
			<xsl:value-of select="link/node()" disable-output-escaping="yes"/>
			</td></tr>
	      </xsl:for-each>
			</table>
		</div>
	</td>	
	</tr>
	</table>
	</div>
	<div id="classifications">
	<table>
		<xsl:for-each select="metadata/classifications/classification">
	       	 <tr>
       		   <td><xsl:value-of select="name"/></td>
       		</tr>
	      </xsl:for-each>
	</table>
	</div>
  </body>
  </html>
</xsl:template>


</xsl:stylesheet>
